package net.destroyer.game.tetris.gui.status;

import java.awt.Dimension;

import javax.swing.JLabel;

import net.destroyer.game.tetris.gui.Messages;

public class StatusBar extends JLabel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4603172357877828819L;
	private static String READY = Messages.getString("Status.ready"); //$NON-NLS-1$
	
	public StatusBar(Dimension dim) {
		super();
		this.setPreferredSize(dim);
		setMessage(READY);
	}
	public void setMessage(String message) {
		this.setText(" "+message);        
	} 
}
